<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/pad/common/commonCss.jsp"/>
<jsp:include page="/pad/common/commonJs.jsp"/>
<script  type="text/javascript" src="${basePath}pad/commonJs/tags/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
if (window != top)
	top.location.href = location.href;

var result = true;
$(document).ready(function() {
	
	var loginStatus = '${loginStatus}';
	
	if(loginStatus.length>0){
		alert("用户名或密码错误!");
	}
	
	$("#body").keydown(function(){
		var event = arguments.callee.caller.arguments[0];
		if(event && event.keyCode==13){ // enter 键
			if (valiForm()) {
				$("#form1").submit();
			}
		}
	});
	$("#login").bind("click", function() {
		if (valiForm()) {
			$("#form1").submit();
		}
	});
});


function valiForm(){
	var name = $("#username").val();
	var pass = $("#password").val();
	if (name == "") {
		alert("用户名不能为空!");
		return false;
	}
	if (pass == "") {
		alert("密码不能为空!");
		return false;
	}
	return true;
}
</script>
<title>嘉童游乐中心</title>
</head>
<body class="login_bbg">
<form id="form1" action="${basePath }padLogin.shtml" method="post">
<div class="login_cent">
    <input type="text" class="login_txt fl" id="username" name="username" placeholder="用户名" value="${rmbName }">
    <input  class="login_txt ml50 fl" placeholder="密码" type="password" id="password" name="password" value="${rmbPwd }">
    <input type="button" value="登&nbsp;&nbsp;陆" class="login_butten ml50 fl" id="login">
</div>
</form>
</body>
</html>